const signInBtn = document.getElementById("signIn");
const signUpBtn = document.getElementById("signUp");
const fistForm = document.getElementById("form1_index");
const secondForm = document.getElementById("form2_index");
const container = document.querySelector(".container");

signInBtn.addEventListener("click", () => {
    container.classList.remove("right-panel-active");
});

signUpBtn.addEventListener("click", () => {
    container.classList.add("right-panel-active");
});

fistForm.addEventListener("submit", (e) => e.preventDefault());
secondForm.addEventListener("submit", (e) => e.preventDefault());

function text_toggle() {
    var title1 = document.getElementById("title1");
    var btn1 = document.getElementById(`btn1`);
    if (title1.innerText === "登 录") {
        title1.innerText = "注 册";
        btn1.innerText = "注 册"
    } else {
        title1.innerText = "登 录";
        btn1.innerText = "登 录"
    }
}
